require 'test/helper'

class TC_Char < Test::Unit::TestCase
  def test_init
    ok Char.new('z').is_a?(Char)
  end

  def test_init_fails_with_long_string
    assert_raises(RuntimeError) { Char.new('joe') }
  end

  def test_cant_modify
    ok Char.new('z').frozen?
  end
end
